home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- access ;
- symbols ;
- locks ; strict;
- comment @ * @;
-
-
- 1.1
- date 88.06.19.14.31.25; author ouster; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @/*
- * getlogin.c --
- *
- * Emulate the UNIX getlogin() function. Since we have no /etc/utmp,
- * we have to rely on the USER envariable being set correctly...
- *
- * Copyright (c) 1987 by the Regents of the University of Californai
- * All Rights Reserved
- */
- #include <sprite.h>
- #include <proc.h>
-
- char *
- getlogin()
- {
- char *name;
- extern char *getenv();
-
- name = getenv("USER");
- return (name);
- }
- @
-